FROM openjdk:8u181-jre-alpine

ENV  TIME_ZONE=Asia/Shanghai
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/' /etc/apk/repositories
RUN apk add --update font-adobe-100dpi ttf-dejavu fontconfig
RUN apk update && apk add --no-cache tzdata curl\
&& echo "${TIME_ZONE}" > /etc/timezone \
&& ln -sf /usr/share/zoneinfo/${TIME_ZONE} /etc/localtime
COPY ./target/poct-admin.jar /
WORKDIR /
EXPOSE 8080
CMD ["java","-jar","poct-admin.jar"]